package routers

import (
	"github.com/gin-gonic/gin"
	"go-tools/handlers"
)

func SetupApiRouters(r *gin.Engine) {

	apiGroup := r.Group("/api")
	{
		apiGroup.GET("/ping", func(c *gin.Context) {
			handlers.Welcome(c)
		})

		//获取神像
		apiGroup.GET("/idols", func(c *gin.Context) {
			handlers.GetIdolsByName(c)
		})
	}

}
